# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=libxaw3dxft
_pkgname=libXaw3dXft
pkgver=1.6.2h
pkgrel=3
pkgdesc="XPaint version of libxaw3d library"
url="https://sourceforge.net/projects/sf-xpaint/files/libxaw3dxft"
arch="all"
license="MIT"
options="!check" # no test suite
makedepends="libxft-dev libxmu-dev libxpm-dev util-macros"
source="https://sourceforge.net/projects/sf-xpaint/files/libxaw3dxft/${_pkgname}-$pkgver.tar.bz2"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
builddir="$srcdir/${_pkgname}-$pkgver"

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr \
		--enable-internationalization \
		--enable-multiplane-bitmaps \
		--enable-gray-stipples \
		--enable-arrow-scrollbars
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
bc9b6de80379bdc82c7f5cd46ac78a422282b018eed979ef5548d0382f43e53619a6ebaf40c6b9ae264d597536022dc1daf023c1d1a04e948d4b4658bc6479ca  libXaw3dXft-1.6.2h.tar.bz2
"
